import request from '@/utils/request'
let baseUrl =
  process.env.NODE_ENV === 'production' ? '/api/riskTrial' : '/riskTrial'
export const list = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list-type/index',
    method: 'post',
    data
  })
export const add = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list-type/store',
    method: 'post',
    data
  })
export const update = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list-type/update',
    method: 'post',
    data
  })
export const del = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list-type/destroy',
    method: 'post',
    data
  })
